package com.weixin.engine.enums;

import com.weixin.engine.daily.distribute.ExecutorRouteFirst;
import com.weixin.engine.daily.distribute.ExecutorRouteLast;
import com.weixin.engine.daily.distribute.ExecutorRouter;

/**
 * Created by xuxueli on 17/3/10.
 */
public enum ExecutorRouteStrategyEnum {

    FIRST("jobconf_route_first", new ExecutorRouteFirst()),
    LAST("jobconf_route_last", new ExecutorRouteLast());


    ExecutorRouteStrategyEnum(String title, ExecutorRouter router) {
        this.title = title;
        this.router = router;
    }

    private String title;
    private ExecutorRouter router;

    public String getTitle() {
        return title;
    }

    public ExecutorRouter getRouter() {
        return router;
    }
}
